package xyz.ddlnt.serviceusrclient.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import xyz.ddlnt.commonutil.result.Result;
import xyz.ddlnt.model.entity.ExamQuestion;
import xyz.ddlnt.model.vo.ExamQuestionIntroVO;

import java.util.List;

/**
 * @author ZZULI_SE 210910
 * @data 2025/5/5 2:25
 */
//@FeignClient(name = "service-usr", url = "http://yixuewang-service-usr:9015", path = "/exam_question")
//@FeignClient(name = "service-usr", url = "http://localhost:9005", path = "/exam_question")
@FeignClient(value = "service-usr", path = "/exam_question")
public interface ExamQuestionFeignClient {
    /**
     * 根据技术科目Id查询试题简介
     * @param technologyId
     * @return
     */
    @GetMapping("/listExamQuesIntro")
    Result<List<ExamQuestionIntroVO>> listExamQuestionIntro(@RequestParam Long technologyId);

    /**
     * 根据技术科目Id查询试题目录
     * @param technologyId
     * @return
     */
    @GetMapping("/listExamQuesIntroDir")
    Result<List<ExamQuestionIntroVO>> listExamQuestionIntroDir(@RequestParam Long technologyId);

    /**
     * 获取试题的所有信息
     * @param questionId
     * @return
     */
    @GetMapping("/examQuestionInfo")
    Result<ExamQuestion> getExamQuestionInfo(@RequestParam Long questionId);
}
